<html>
<head>
<title>Docs For Class ConfigManager</title>
<link rel="stylesheet" type="text/css" href="../../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">kassiop</td>
  </tr>
  <tr><td class="header_line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                    
                                                                                                                                                      		  [ <a href="../../classtrees_kassiop.html" class="menu">class tree: kassiop</a> ]
		  [ <a href="../../elementindex_kassiop.html" class="menu">index: kassiop</a> ]
		  	    [ <a href="../../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../../li_kassiop.html">kassiop</a><br />
              <a href="../../li_kassiop-core.html">kassiop-core</a><br />
              <a href="../../li_kassiop-managers.html">kassiop-managers</a><br />
              <a href="../../li_kassiop-net.html">kassiop-net</a><br />
              <a href="../../li_kassiop-system.html">kassiop-system</a><br />
              <a href="../../li_kassiop-system-data.html">kassiop-system-data</a><br />
              <a href="../../li_kassiop-system-validators.html">kassiop-system-validators</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	subpackage <b>core</b><br>  <div class="package">
			<a href="../../kassiop/core/_core---Autoload.php.html">		Autoload.php
		</a><br>
			<a href="../../kassiop/core/_core---Configuration.php.html">		Configuration.php
		</a><br>
	  </div><br />
	subpackage <b>managers</b><br>  <div class="package">
			<a href="../../kassiop/managers/_managers---ConfigManager.php.html">		ConfigManager.php
		</a><br>
			<a href="../../kassiop/managers/_managers---CredentialsManager.php.html">		CredentialsManager.php
		</a><br>
			<a href="../../kassiop/managers/_managers---ErrorsModelManager.php.html">		ErrorsModelManager.php
		</a><br>
	  </div><br />
      
      
            <b>Classes:</b><br />
        <div class="package">
	core<br />	    &nbsp;&nbsp;		<a href="../../kassiop/core/Autoload.html">Autoload</a><br />
	    &nbsp;&nbsp;		<a href="../../kassiop/core/Configuration.html">Configuration</a><br />
	  </div>
  <div class="package">
	managers<br />	    &nbsp;&nbsp;		<a href="../../kassiop/managers/ConfigManager.html">ConfigManager</a><br />
	    &nbsp;&nbsp;		<a href="../../kassiop/managers/CredentialsManager.html">CredentialsManager</a><br />
	    &nbsp;&nbsp;		<a href="../../kassiop/managers/ErrorsModelManager.html">ErrorsModelManager</a><br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: ConfigManager</h1>
Source Location: /managers/ConfigManager.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">Manage the custom configuration of the project.</div><br /><br />
<h4>Author(s):</h4>
<ul>
          <li>NairuS</li>
            </ul>




        
    
<h4>Version:</h4>
<ul>
  <li>1.2 $Rev: 90 $ $Date: 2011-01-16 10:23:26 +0100 (Dim, 16 jan 2011) $ $Author: nicolas.surian $</li>
</ul>

        
</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../../kassiop/managers/ConfigManager.html#var$config">$config</a></li>
    <li><a href="../../kassiop/managers/ConfigManager.html#var$withSection">$withSection</a></li>
  </ul>
</td>

<td valign="top">
<h3><a href="#class_consts">Constants</a></h3>
<ul>
    <li><a href="../../kassiop/managers/ConfigManager.html#constCONFIG_FILE_NAME">CONFIG_FILE_NAME</a></li>
    <li><a href="../../kassiop/managers/ConfigManager.html#constDEFAULT_CONFIG_FILE_NAME">DEFAULT_CONFIG_FILE_NAME</a></li>
  </ul>
</td>

<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../../kassiop/managers/ConfigManager.html#method__construct">__construct</a></li>
    <li><a href="../../kassiop/managers/ConfigManager.html#methodget">get</a></li>
    <li><a href="../../kassiop/managers/ConfigManager.html#methodgetBackConfigPath">getBackConfigPath</a></li>
    <li><a href="../../kassiop/managers/ConfigManager.html#methodgetFrontConfigPath">getFrontConfigPath</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>






</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 47]<br />
Manage the custom configuration of the project.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>author:</b>&nbsp;&nbsp;</td><td>NairuS</td>
  </tr>
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.2 $Rev: 90 $ $Date: 2011-01-16 10:23:26 +0100 (Dim, 16 jan 2011) $ $Author: nicolas.surian $</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$config"></a>
	<p></p>
	<h4>$config = <span class="value">array()</span></h4>
	<p>[line 103]</p>
  The configuration file parsed in array.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>array</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$withSection"></a>
	<p></p>
	<h4>$withSection = <span class="value"></span></h4>
	<p>[line 110]</p>
  Defines if the config file has been parsed with section.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>boolean</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">

  <hr />
	<a name="method__construct"></a>
	<h3>constructor __construct <span class="smalllinenumber">[line 56]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>ConfigManager __construct(
[string
$file = null], [boolean
$withSection = true])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates an instance of ConfigManager<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>throws:</b>&nbsp;&nbsp;</td><td>Exception              If the config file cannot be parsed.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$file</b>&nbsp;&nbsp;</td>
        <td>The path of the custom configuration.</td>
      </tr>
          <tr>
        <td class="type">boolean&nbsp;&nbsp;</td>
        <td><b>$withSection</b>&nbsp;&nbsp;</td>
        <td>Defines if the config file must be parsed with sections.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodget"></a>
	<h3>method get <span class="smalllinenumber">[line 121]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>mixed get(
string
$property, [string
$section = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns the config property.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>The config file can return the all scalar types and only array compound type.</td>
  </tr>
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="http://php.net/manual/en/language.types.php">http://php.net/manual/en/language.types.php</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$property</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$section</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetBackConfigPath"></a>
	<h3>method getBackConfigPath <span class="smalllinenumber">[line 149]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string getBackConfigPath(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return the path of the backend config.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetFrontConfigPath"></a>
	<h3>method getFrontConfigPath <span class="smalllinenumber">[line 138]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string getFrontConfigPath(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Return the path of the frontend config.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />

<hr />
<a name="class_consts"></a>
<h3>Class Constants</h3>
<div class="tags">
	<a name="constCONFIG_FILE_NAME"></a>
	<p></p>
	<h4>CONFIG_FILE_NAME = <span class="value">&nbsp;&quot;config.ini&quot;&nbsp;</span></h4>
	<p>[line 96]</p>
  The default path of mysql.properties.<br /><br />
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="constDEFAULT_CONFIG_FILE_NAME"></a>
	<p></p>
	<h4>DEFAULT_CONFIG_FILE_NAME = <span class="value">&nbsp;&quot;config.ini.default&quot;&nbsp;</span></h4>
	<p>[line 91]</p>
  The default name of config file.<br /><br />
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 20 Jan 2011 14:38:57 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>